package ru.amse.tsyganov.jumleditor.model;

import java.util.HashSet;
import java.util.Set;


public class StateVertex {
	private final Set<Transition> outgoing = 
		new HashSet<Transition>();
	
	private final Set<Transition> incoming = 
		new HashSet<Transition>();
	
	private final State container;
	
	public StateVertex(State container) {
		if (container == null) {
			throw new IllegalArgumentException();
		}
		this.container = container;
	}
	
	
	public Set<Transition> getOutgoing() {
		return outgoing;
	}


	public Set<Transition> getIncoming() {
		return incoming;
	}


	public State getContainer() {
		return container;
	}
}
